use warp::Filter;
use crate::handlers::version_handler;

pub fn version_route() -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
    warp::path("version")
        .and(warp::get())
        .and_then(version_handler::handle_version)
}